﻿<!--<div class="btn-group">
    <button class="btn btn-default" data-toggle="modal" data-target="#myModal">WSDL解析</button>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">WSDL解析</h4>
            </div>
            <div class="modal-body">
                <textarea name="wsdldata" id="wsdldata" style="height: 200px; width: 100%;" ng-model="wsdl"></textarea>
                <div class="alert alert-warning" role="alert" style="margin-top: 10px;" ng-show="errormsg.length > 0">
                    <p>{{errormsg}}</p>
                </div>
            </div>
            <div class="modal-footer">
                <input type="button" class="btn btn-default" id="btnResolveWsdl" value="解析" ng-click="resolveWsdl()">
                <input type="button" class="btn btn-default" id="btnFormat" ng-click="formatxml('wsdl')" value="格式化">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>-->

<div class="page-header">
    <h1>WSDL解析</h1>
</div>
<div class="modal-body">
    <textarea name="wsdldata" class="form-control" style="height: 200px; width: 100%;" data-ng-model="wsdl"></textarea>
    <div class="alert alert-warning" role="alert" style="margin-top: 10px;" data-ng-show="errormsg.length > 0">
        <p>{{errormsg}}</p>
    </div>
</div>
<div class="modal-footer">
    <input type="button" class="btn btn-default" id="Button1" value="解析" data-ng-click="resolveWsdl()">
    <input type="button" class="btn btn-default" id="Button2" data-ng-click="formatxml('wsdl')" value="格式化">
</div>
<div class="panel panel-default">
    <div class="panel-heading">Web服务信息</div>
    <div class="panel-body">
        <div>
            <div class="form-group">
                <label for="exampleInputEmail1">WSDL地址</label>
                <!--<textarea class="form-control" rows="3" data-ng-model="wsdlInfo.Description"></textarea>-->
                <input type="text" data-ng-model="wsdlInfo.WSDLUrl" class="form-control" data-ng-disabled="wsdlInfo==null"/>
            </div>
            <div class="form-group">
                <label for="exampleInputEmail1">服务描述</label>
                <!--<textarea class="form-control" rows="3" data-ng-model="wsdlInfo.Description"></textarea>-->
                <input type="text" data-ng-model="wsdlInfo.Description" class="form-control" data-ng-disabled="wsdlInfo==null"/>
            </div>
            <div class="form-group">
                <button type="submit" class="btn btn-default" data-ng-click="saveResolvedInfo()" data-ng-disabled="wsdlInfo==null">保存</button>
            </div>
        </div>
        <div class="list-group">
            <p class="list-group-item">
                服务名：{{wsdlInfo.Service}}
            </p>
            <p class="list-group-item">
                名称空间：{{wsdlInfo.Namespace}}
            </p>
            <p class="list-group-item">
                调用地址：{{wsdlInfo.SOAPAddress}}
            </p>
        </div>
    </div>
    <!-- Table -->
    <table class="table table-striped table-bordered">
        <caption>方法表</caption>
        <thead>
            <tr>
                <th>序号</th>
                <th>方法名称</th>
                <th>SOAPAction</th>
            </tr>
        </thead>
        <tbody>
            <tr data-ng-repeat="item in wsdlInfo.Methods track by $index">
                <td>{{$index}}</td>
                <td>{{item.MethodName}}</td>
                <td>{{item.SOAPAction}}</td>
            </tr>
        </tbody>
    </table>
</div>
